/* Copyright - Apache License 2.0
 * 
 * The project "kyou" is
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *      http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package net.kyou.pack.segment.param;

/**
 * 定义了参数的后缀类型
 * 
 * @author NuclearG (<a href="mailto:nuclearg@163.com">nuclearg@163.com</a>)
 */
enum ParamPostfix {
    /**
     * 表示参数不关心是否有后缀，并且根本不去判断或使用。
     */
    Irrelevant,

    /**
     * 表示参数不应有后缀
     */
    Empty,
    /**
     * 表示参数应当有后缀
     */
    Required,
    /**
     * 表示参数应当有一个后缀，并且这个后缀必须可以被解释成一个非负整数
     */
    RequiresInt,
    /**
     * 表示参数可以没有后缀也可以有后缀
     */
    Dual,
    /**
     * 表示参数可以没有后缀也可以有后缀，但如果存在后缀则这个后缀必须可以被解释成一个非负整数
     */
    DualInt,
}
